package com.github.dbutil;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * <p>动态数据源控制器</p>
 * @author  Crab2Died
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DBContextHolder.getDSType();
    }
}
